import { defineStore } from 'pinia';
import { getMapWorldToken } from '@/api/setting/index';

export const useSettingStore = defineStore('setting', {
  state: () => {
    return {
      token: '',
    };
  },
  actions: {
    async getMapToken() {
      const response = await getMapWorldToken();
      this.token = response.token;
    },
  },
});
